home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / DRIVER.CAB / ecactive.cab / SCRHAYES < prev    next >
Encoding:
Text File  |  1993-06-18  |  2.1 KB  |  127 lines

  1. *debug 1
  2.  
  3. *********************************************************
  4. *                                *
  5. * This script file is used to configure the CODEX Modem *
  6. *                                *
  7. *********************************************************
  8.  
  9. set_port 1
  10. set_speed 1200
  11. set_parity NO_PARITY
  12. set_data_bits 8
  13. open_comm
  14. iferror bye_comm
  15. print "Initialization successful "
  16.  
  17. wait 1
  18.  
  19. type "AT",0d,0a
  20. iferror bye_t1
  21. timeout 15
  22. match "OK"
  23. iferror bye_m1
  24.  
  25. ***************************
  26. *              *
  27. *   Programming modem     *
  28. *              *
  29. ***************************
  30.  
  31.  
  32. **********************************
  33. *** Setting Modulation Options ***
  34. **********************************
  35.  
  36. **********************************************************
  37. *** Setting Error Correction and Data Compression Options ***
  38. *************************************************************
  39.  
  40. type "AT&F",0d,0a
  41. match "OK"
  42. iferror EC/DC
  43.  
  44.  
  45. **********************************************
  46. *** Set ACU (Automatic Call Unit) settings ***
  47. **********************************************   
  48.  
  49. type "ATL1",0d,0a
  50. match "OK"
  51. iferror ATFORM
  52.  
  53.  
  54. ****************************
  55. *** Set Terminal Options ***
  56. ****************************
  57.  
  58. type "ATB",0d,0a
  59. match "OK"
  60. iferror TERMERR
  61.  
  62. type "AT&C1",0d,0a
  63. match "OK"
  64. iferror TELCO
  65.  
  66.  
  67. wait 1
  68.  
  69. type "AT&D2",0d,0a
  70. match "OK"
  71. iferror TELCO
  72.  
  73. type "ATS0=1",0d,0a
  74. match "OK"
  75. iferror TELCO
  76.  
  77.  
  78. type "AT&M1",0d,0a
  79. match "OK"
  80. iferror TELCO
  81.  
  82.  
  83. type "AT&S1",0d,0a
  84. match "OK"
  85. iferror TELCO
  86.  
  87. type "AT&W",0d,0a
  88. match "OK"
  89. iferror TELCO
  90.  
  91.  
  92. goto bye
  93. :TELCO
  94. print "TELCO ERROR"
  95. goto exit
  96. :bye_t1
  97. print "Error during modem programming. Type failed."
  98. goto exit
  99. :TERMERR
  100. print "ERROR WHILE SETTING TERMINAL OPTIONS"
  101. goto exit
  102. :EC/DC
  103. print "ERROR WHILE SETTING EC/DC OPTIONS"
  104. goto exit
  105. :MODERR
  106. print "ERROR WHILE SETTING MODULATION OPTIONS"
  107. goto exit
  108. :ATFORM
  109. print "ERROR WHILE SETTING ACU OPTIONS"
  110. goto exit
  111.  
  112. :bye_m1
  113. print "No answer from modem."
  114. goto exit
  115.  
  116. :bye_comm
  117. print "**** INIT ERROR !!"
  118. goto exit
  119.  
  120.  
  121.  
  122. :bye 
  123. print "Modem programmed successfully"
  124.  
  125. :exit
  126.  
  127.